package com.example.test.teacher;

import androidx.appcompat.app.AppCompatActivity;


import android.app.ActivityOptions;
import android.content.Intent;
import android.os.Bundle;
import android.transition.Transition;
import android.transition.TransitionInflater;
import android.view.View;
import android.view.Window;
import android.widget.Button;

import com.example.test.R;

import static androidx.appcompat.widget.AppCompatDrawableManager.get;

public class TeacherActivity extends AppCompatActivity {

    private Button lr;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        getWindow().requestFeature(Window.FEATURE_CONTENT_TRANSITIONS);
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_teacher);

//            init();
//        lr.setOnClickListener(new View.OnClickListener() {
//            @Override
//            public void onClick(View v) {
//                get();
//            }
//        });
    }

//    public void get()
//    {
//        Intent intent=new Intent(this, TeacherActivity.class);
//        Transition explode = TransitionInflater.from(this).inflateTransition(R.transition.explode);
//        //退出时使用
//        getWindow().setExitTransition(explode);
//        //第一次进入时使用
//        getWindow().setEnterTransition(explode);
//        //再次进入时使用
//        getWindow().setReenterTransition(explode);
//        startActivity(intent, ActivityOptions.makeSceneTransitionAnimation(this).toBundle());
//        startActivity(intent);
//        overridePendingTransition(R.layout.activity_teacher,R.layout.activity_main);
//    }
//    public void init()
//    {
//        lr = findViewById(R.id.button_lr);
//    }
}